package com.itita.ww2.model.area;

import com.itita.ww2.enums.AreaEnum;

/**
 * 区域基类
 * @author NorthLan
 *
 */
public class BaseArea {
	protected AreaEnum areaType = AreaEnum.DEFAULT;

	protected void setType(AreaEnum type) {
		this.areaType = type;
	}

	public AreaEnum getAreaEnum() {
		return this.areaType;
	}

	@Override
	public boolean equals(Object obj) {
		// 判断type是否一致
		if (obj instanceof BaseArea) {
			return ((BaseArea) obj).areaType == this.areaType;
		}
		return false;
	}
}
